<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改跑分配置')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-channelScoreSetting-edit" th:object="${channelScoreSetting}">
            <input id="scoreId" name="scoreId" th:field="*{scoreId}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">一级代理费率：</label>
				<div class="col-sm-8">
					<input id="rate" name="rate" th:field="*{rate}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">代理抽层费率：</label>
				<div class="col-sm-8">
					<input id="agentRate" name="agentRate" th:field="*{agentRate}" class="form-control" type="text">
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "channel/channelScoreSetting";
		$("#form-channelScoreSetting-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-channelScoreSetting-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
